package com.ruoyi.common.core.domain.testEqu;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 受检设备信息对象 report_equ
 * 
 * @author luguanqing
 * @date 2020-11-10
 */
public class TestedEqu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键Id */
    private String id;

    /** 父级Id */
    @Excel(name = "父级Id")
    private String pid;

    /** 父级Id */
    private String parentId;

    /** 设备分类名称 */
    @Excel(name = "设备分类名称")
    private String name;

    /** 排序 */
    @Excel(name = "排序")
    private String sort;

    /** 简称 */
    @Excel(name = "简称")
    private String shortName;


    /** 子设备菜单 */
    private List<TestedEqu> children = new ArrayList<TestedEqu>();

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public List<TestedEqu> getChildren() {
        return children;
    }

    public void setChildren(List<TestedEqu> children) {
        this.children = children;
    }

    public String getShortName() {
        return shortName;
    }

    public void setShortName(String shortName) {
        this.shortName = shortName;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("name", getName())
            .append("sort", getSort())
            .append("shortName", getShortName())
            .toString();
    }
}
